﻿using System;
using System.ComponentModel.DataAnnotations;

namespace DevKnightlie.WPF.AutoForm.Demo
{
    public enum PersonTitle
    {
        Mr,
        Ms,
        Miss,
        Mrs,
        Dr
    }

    class PersonDataModel
    {
        public PersonTitle Title { get; set; }

        [MaxLength(20)]
        public String FirstName { get; set; }

        [MaxLength(30)]
        public String LastName { get; set; }

        [MaxLength(80)]
        public String EmailAddress { get; set; }

        [MaxLength(80)]
        public String ConfirmEmail { get; set; }

        public DateTime Birthday { get; set; }

        [MaxLength(20)]
        public String PhoneNumber { get; set; }

    }
}
